
def logging(fn):
    def inner():
        print('请先登录')
        fn()
    return inner

@logging

def comment():
    print('发表评论')

comment()